from show_relate_function import *


class ShowParams:
    def __init__(self):
        self.sonicFreq = 20000
        self.lipOffset = 40
        self.nfft = 32768
        self.frameTime = 0.02
        self.aheadTime = 0.01
        self.isGetRange = True
        self.savePicDir = 'F:/plt_save_pic'
        self.vocabPath = 'vocab/word_mod50.txt'

params = ShowParams()

filePath = 'F:/dataset/all_ultra_data/1/mix_17k_500/add_1.wav'
# obj = SingleWavShower(filePath, params)
# # obj.showSignalGradient(params.sonicFreq)
# # obj.showOneWav()
# obj.getCropClip()

dirPath = 'F:/dataset/all_ultra_data/1/mix_17k_500'
multiObj = MultiWavShower(dirPath, params)
multiObj.saveTimeIndexInFile()